 <div class="help_center" >
     	<div id="help_center" class="help_detail hidden">
	     		  <h3 class="font14b">{$_lang['what']}{$model_info[model_name]}? </h3>
         <p><!--{eval echo kekezu::filter_input($model_info[model_desc])}--></p>
      	</div>

      	<div class="help_down ">
			<a href="#" class="action_show">任务说明<span class="arrow_b"></span></a>
		</div>
	</div>
	<div class="clear"></div>
 <style type="text/css">
 	.file{position:absolute;font-size:23px;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;z-index:1; cursor:pointer;}
 </style>
<!--左边部分-->

<div class="clearfix">
    <div class="pad10">
        <!--from表单 start-->
        <div class="form_box clearfix box border_n">
         <form action="{$basic_url}" method="post" name="frm_step2" id="frm_step2">
	  	<input type="hidden" name="step2" value="step2">
	  	<input type="hidden" name="formhash" value="{FORMHASH}">
                <div class="rowElem clearfix">
                    <label class="grid_7">
                        <strong>{$_lang['industry']}{$_lang['zh_mh']}</strong>
                    </label>
                    <div class="grid_16" >
                        <select name="indus_pid" id="indus_pid" title="{$_lang['select_industry']}"  onchange="showIndus(this.value)" limit = "required:true;between:5-10" msg = '{$_lang['industry_no_choose']}' msgArea="span_indus">
                            <option value="">{$_lang['select_industry']}</option>
                      		{loop $indus_p_arr $v}
								 <option value="{$v[indus_id]}" {if $release_info[indus_pid]==$v[indus_id]}selected{/if}>{$v[indus_name]}</option>
							{/loop}
						 </select>


                    <span id="reload_indus">
                        <select name="indus_id" id="indus_id"  limit = "required:true;between:5-10" msg='{$_lang['industry_z_no_choose']}' title='{$_lang['choose_part']}' msgArea="span_indus"><span id="span_indus"></span>
                            <option value="">{$_lang['choose_part']}</option>
							{if $release_info['indus_id']}
								{loop $indus_arr $k $v}
		                       		 <option value="{$v[indus_id]}" {if $release_info[indus_id]==$v[indus_id]}selected{/if}>{$v[indus_name]}</option>
								{/loop}
							{/if}
                        </select>
					</span>
					<span class="cc00 ml_5 mr_5">*</span>
					<span id="span_indus"></span>
                    </div>
                </div>
                <div class="rowElem clearfix po_re">
                    <label class="grid_7">
                        <strong>{$_lang['title']}{$_lang['zh_mh']}</strong>
                    </label>
                    <div class="grid_16">
                        <input name="txt_title" id="txt_title" type="text" value="<!--{eval echo kekezu::escape($release_info['txt_title'])}-->" title="{$_lang['txt_title']}" size="34" msgArea="span_title"
						limit="required:true;len:5-50" msg="{$_lang['msg_title']}" maxlength=50 style="width:375px"  class="mr_5"/>
						<span class="cc00 mr_5">*</span>
                        <span id="span_title">{$_lang['span_title']}</span>
                    </div>
                </div>

                <div class="rowElem clearfix po_re">
                    <label class="grid_7">
                        <strong>{$_lang['pro_url']}{$_lang['zh_mh']}</strong>
                    </label>
                    <div class="grid_16">
                        <input name="txt_pro_url" id="txt_pro_url" type="text" value="<!--{eval echo kekezu::escape($release_info['txt_pro_url'])}-->" title="{$_lang['pro_url_title']}" size="34" msgArea="span_pro_url"
						limit="required:true;type:url" maxlength=50 style="width:375px"  msg="{$_lang['pro_url_msg']}"  class="mr_5"/>
                        <div class="c999" id="span_pro_url"></div>
                    </div>
                </div>
				  <div class="rowElem clearfix po_re">
                    <label class="grid_7">
                        <strong>{$_lang['platform']}</strong>
                    </label>
                    <div class="grid_16">
                    	 <input class="border_n" type="checkbox" name="delivery_platform[1]"  id="delivery_platform_sina" value="sina"
						 {if $release_info[delivery_platform][1]||!$release_info[delivery_platform][1]}checked{/if} onclick="set_checked('delivery_platform_sina','sina_url');"><label class="mr_10">{$_lang['sina']}</label>
                    	 <input class="border_n" type="checkbox" name="delivery_platform[0]" id="delivery_platform_ten" value="ten"
						 {if $release_info[delivery_platform][0]}checked{/if} onclick="set_checked('delivery_platform_ten','ten_url');"><label  class="mr_10">{$_lang['ten']}</label>
                    </div>
                </div>
	                <div class="rowElem clearfix">
                    <label class="grid_7">
                        <strong>{$_lang['dj_content']}{$_lang['zh_mh']}</strong>
                    </label>
                   <div class="grid_16">
                        <textarea  name="tar_content"   id="tar_content" msgArea="msg_content" onkeydown="checkInner(this,140,event)"><!--{eval echo kekezu::escape($release_info[tar_content])}--></textarea>
                         <script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.config.js"></script>
					<!-- 编辑器源码文件 -->
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.all.min.js"></script>
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/lang/zh-cn/zh-cn.js"></script>
					 <!-- 实例化编辑器 -->
				    <script type="text/javascript">
				        var ue = UE.getEditor('tar_content', {
				            //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
				        	initialFrameWidth: '80%',
				        	initialFrameHeight: '400'
				        });
				    </script>
                        <div class="clear"></div>
                        <div class="c999" id="length_show">{$_lang['wb_content_notice']}</div>
						<div class="" id="msg_content"></div>

                    </div>
                </div>
                <div class="rowElem clearfix lit_form mb_10 border_n ">
                            <label class="grid_7">
                                <strong>{$_lang['wb_ad_pic']}:</strong>
                            </label>
                            <!--上传内容-->
                            <div class="grid_16 po_re">
								<div id="picker1">上传图片</div>
								<input type="hidden" name="file_ids" id="file_ids">

                                <div class="po_ab" style="left:130px;top:5px;">
                                    <span style="line-height:15px;" class="ws_prewrap mr_20">最多可添加5个附件</span>
                                    <a href="javascript:void();" class="file_type" title="<ol class='t_l'><li>{$_lang['upload_title']}{$basic_config['max_size']}M.</li><li>{$_lang['upload_style']} {$ext_show}</li></ol>">无法上传?</a>
                                </div>
								<ul class="affix-list upload-file-list-info" id="fileList1"></ul>
                            </div>






					<link rel="stylesheet" type="text/css" href="static/js/webuploader/webuploader.css">
					<script type="text/javascript" src="static/js/webuploader/webuploader.js?r={RANDOM_PARA}"></script>
					<script type="text/javascript" src="static/js/webuploader/kppw.webuploader.js"></script>
					<script type="text/javascript">
						//指定网站URL，后台是必须要定义的，前台不必定义
						var baseurl = "{$basic_config['website_url']}";
						var uploadsize = parseInt("{$basic_config['max_size']}");
						uploadsize =  isNaN(uploadsize)? 1 : uploadsize;
						$(function(){
							$("#picker1").KKUploader({
										accept: {
											extensions : '{$ext_types}'  //可上传文件格式
										},
										fileVal:'upload',		//指定上传文本域的name  如不指定，默认是file
										fileNumLimit:5,			//上传数量限制
										hiddenName:'file_ids',	//表单隐藏域id
										hiddenValType:'1',		//指定隐藏域保存值的类型   1=是保存file_id ，2=保存save_name
										listName:'fileList1',	//指定上传文件列表ID，如果不指定，则默认为fileList
										editListName:'editfileList1',	//指定上传文件编辑列表ID，如果不指定，默认为editfileList
										separator:'|',			//多文件上传时，指定分隔符，如不指定，默认为","
										fileSingleSizeLimit:uploadsize*1024*1024			//上传大小限制
									},
									{
										filename : 'upload',//传递给服务端的参数指定上传文本域的name，如果未指定，上传不成功
									});


						});


					</script>

					<!--end 上传内容-->
                    </div>


                <div class="rowElem clearfix">
                    <label class="grid_7">
                        <strong>{$_lang['contact']}{$_lang['zh_mh']}</strong>
                    </label>
                    <div class="grid_16">
                        <input name="txt_mobile" id="contact_mobile" type="text" value="{if $release_info['txt_mobile']}$release_info['txt_mobile']{else}$user_info['mobile']{/if}"
						  title="{$_lang['mobile_title']}" size="34" msgArea="span_mobile"
						limit="required:true;type:mobileCn" msg="{$_lang['mobile_msg']}" maxlength="50" class="mr_5"/>
                        <div class="c999" id="span_mobile"></div>
                    </div>
                </div>
            </form>
        </div><!--from表单 end-->
        <div class="step_button">
           <button type="submit" name="is_submit" onclick="stepCheck_wbdj('$model_id');" class="big button">{$_lang['next_step']}</button>
            <span class="block"><input type="checkbox" name="agreement" id="agreement" checked>
                <label>
                    {$_lang['agree']}《<a href="" target="_blank" class="agreement_link">{$_lang['agreement']}</a>》
                </label>
            </span>
        </div>
    </div>
	<div class="agreement_part clearfix" style="display:none;">
		<p><!--{tag 任务发布协议}--></p>
    </div>
</div>
<!--end 左边部分--><!--右边部分-->

<script type="text/javascript">
	//提交
	function stepCheck_wbdj(model_id){
		var model_id = model_id;
		//判断是否一个平台都没选择
		var sina = $("#delivery_platform_sina").attr("checked");
		var ten = $("#delivery_platform_ten").attr("checked");
		var tar_content = $("#tar_content").val();

		if(!ten&&!sina){
			 showDialog("{$_lang['please_choose_plat']}","alert","{$_lang['operate_notice']}",'','error');return false;
		}else if (tar_content.length<=0 || tar_content.length>140){
			showDialog("{$_lang['weibo_content_not_empty']}{$_lang['tar_content_notice']}","alert","{$_lang['operate_notice']}",'','error');return false;
		}else{
			stepCheck(model_id);
		}
	}


	//任务需求
	$(function (){
		$("#pub_type_1").click(function(){
			$("#span_content_id").hide();//发布新微薄的textarea
			$("#span_url_id").show();//新浪微博的地址
			$("#span_zf_id").show();//其他需求
			$("#span_new_id").hide();
			$("#div_update_pic").hide();
		});
		$("#pub_type_2").click(function(){
			$("#span_content_id").show();
			$("#span_url_id").hide();
			$("#span_zf_id").hide();
			$("#span_new_id").show();
			$("#div_update_pic").show();
		});
	})


	 //其他需求
	function show_hide_at(control_id,show_hide_id){
		var control_id = control_id;
		var show_hide_id = show_hide_id;
		var control_val = $("#"+control_id).attr("checked");

		if(control_val==true){
			 $("#"+show_hide_id).show();
		}else{
			 $("#"+show_hide_id).hide();
		}
	}

	//平台
		function set_checked(delivery_id,checked_id){
			var checked_id = checked_id;
			var delivery_id = delivery_id;
			var val = $("#"+delivery_id).attr("checked");
			if(val==false){
				$("#"+checked_id).show();
			}else{
				$("#"+checked_id).hide();
			}
		}

</script>
<!--end 右边部分-->
